home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16076 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  26 lines

  1. Newsgroups: comp.lang.c++
  2. Path: uucp-1.csn.net!slimer!bgeerdes
  3. From: bgeerdes@igs.com (Bruce Geerdes)
  4. Subject: Re: Rogue Wave: assign RWCSubString to RWCString (how does it work?)
  5. Message-ID: <1996Apr9.131907.24213@igs.com>
  6. Organization: Igs, Inc.
  7. X-Newsreader: TIN [version 1.2 PL2]
  8. References: <4kc6dl$d58@cpcug.org>
  9. Date: Tue, 9 Apr 96 13:19:07 GMT
  10.  
  11. John Emmerling (johne@cpcug.org) wrote:
  12. >In Rogue Wave's documentation of the RWCTokenizer class there is an
  13. >example of using the "()" operator which returns an RWCSubString.  The
  14. >return value is stored in an RWCString.  Yes the code example works, 
  15. >however I am at a loss to understand how.
  16.  
  17. >I can't find any "=" operator, type conversion, etc. that would support
  18. >assigning an RWCSubString to an RWCString.  I have noticed that subclasses
  19. >of RWCString do not inherit this ability i.e. you can't assign an
  20. >RWCSubString to an instance one of these.
  21.  
  22. There is a copy constructor RWCString(const RWCSubString&).  I would guess
  23. the RWCSubString gets converted to a RWCString before operator=(RWCString&).
  24. -- 
  25. bgeerdes@igs.com (Bruce Geerdes)
  26.